package design.simdi.code.final_paper.core.entities;

import javax.persistence.AttributeOverride;
import javax.persistence.AttributeOverrides;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;

/**
 * 
 * @author Marius Dumitriu - (May 30, 2010 - 11:14:17 PM)
 * 
 */
@Entity
@Table(name = "professors")
@AttributeOverrides( { @AttributeOverride(name = "id", column = @Column(name = "Professor_Id")) })
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
public class Profesor extends ApplicationEntity {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	private String titluUniversitar;
	private String about;
	private String homePage;
	private String office;
	private String departament;

	/**
	 * @return the titluUniversitar
	 */
	@Column(length = 250, nullable = true, name = "Titlu_Universitar")
	public String getTitluUniversitar() {
		return titluUniversitar;
	}

	/**
	 * @param titluUniversitar
	 *            the titluUniversitar to set
	 */
	public void setTitluUniversitar(String titluUniversitar) {
		this.titluUniversitar = titluUniversitar;
	}

	public Profesor() {
	}

	public void setAbout(String about) {
		this.about = about;
	}

	@Column(nullable = true, name = "About")
	public String getAbout() {
		return about;
	}

	public void setHomePage(String homePage) {
		this.homePage = homePage;
	}

	@Column(length = 250, nullable = true, name = "HomePage")
	public String getHomePage() {
		return homePage;
	}

	public void setOffice(String office) {
		this.office = office;
	}

	@Column(length = 250, nullable = true, name = "Office")
	public String getOffice() {
		return office;
	}

	public void setDepartament(String departament) {
		this.departament = departament;
	}

	@Column(length = 250, nullable = true, name = "Departament")
	public String getDepartament() {
		return departament;
	}
}
